package com.team.teamuserservice.service;

import com.team.teamuserservice.entity.dto.DelayRescueMessage;
import com.team.teamuserservice.entity.dto.UserLocation;

import java.io.IOException;

/**
 * 广播服务接口
 */
public interface BroadcastService {
    
    /**
     * 广播给指定距离内的商家
     * @param delayRescueMessage 延迟信息
     * @param distance 距离（公里）
     */
    void broadcastToMerchants(DelayRescueMessage delayRescueMessage, double distance) throws IOException;
    
    /**
     * 广播给5km以内的商家
     * @param delayRescueMessage 延迟信息
     */
    void broadcastTo5kmMerchants(DelayRescueMessage delayRescueMessage) throws IOException;
    
    /**
     * 广播给10km以内的商家
     * @param delayRescueMessage 延迟信息
     */
    void broadcastTo10kmMerchants(DelayRescueMessage delayRescueMessage) throws IOException;
} 